package top.juntower.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.juntower.dao.BackstageMapper;
import top.juntower.pojo.Backstage.Feedback;
import top.juntower.pojo.Backstage.GameInformations;
import top.juntower.pojo.Backstage.GameTypes;
import top.juntower.pojo.Backstage.Userinfo;
import top.juntower.pojo.GameType;
import top.juntower.pojo.dto.GameInformationDto;
import top.juntower.service.BackstageService;

import java.util.List;
import java.util.Map;

@Service
public class BackstageServiceImpl  implements BackstageService {

    @Autowired
    private BackstageMapper backstageMapper;


    @Override
    public int addGameInformation(GameInformationDto gameInformationDto) {
        return backstageMapper.addGameInformation(gameInformationDto);
    }

    @Override
    public int addGameType(GameInformationDto gameInformationDto) {
        return backstageMapper.addGameType(gameInformationDto);
    }

    @Override
    public int addGameTypeUser(GameInformationDto gameInformationDto) {
        return backstageMapper.addGameTypeUser(gameInformationDto);
    }

    @Override
    public int addGameRotation(Integer giId, List<String> grImg) {
        return backstageMapper.addGameRotation(giId, grImg);
    }

    @Override
    public int addGameInformationTwo(Map map) {
        return backstageMapper.addGameInformationTwo(map);
    }

    @Override
    public int addGameTypeTwo(Map map) {
        return backstageMapper.addGameTypeTwo(map);
    }

    @Override
    public int addGameTypeUserTwo(Map map) {
        return backstageMapper.addGameTypeUserTwo(map);
    }

    @Override
    public int addGameRotationTwo(Map map) {
        return backstageMapper.addGameRotationTwo(map);
    }

    @Override
    public Integer queryId() {
        return backstageMapper.queryId();
    }

    @Override
    public List<Userinfo> getUserInfo(Integer pageNum, Integer pageSize) {
        return backstageMapper.getUserInfo(pageNum, pageSize);
    }

    @Override
    public List<Userinfo> getLikeUserInfo(String likeInfo, Integer pageNum, Integer pageSize) {
        return backstageMapper.getLikeUserInfo(likeInfo, pageNum, pageSize);
    }

    @Override
    public int delUserInfo(Integer uId, Integer uState) {
        return backstageMapper.delUserInfo(uId, uState);
    }

    @Override
    public List<Feedback> getFeedbacks(Integer pageNum, Integer pageSize) {
        return backstageMapper.getFeedbacks(pageNum, pageSize);
    }

    @Override
    public List<GameInformations> getGameInformations(Integer pageNum, Integer pageSize) {
        return backstageMapper.getGameInformations(pageNum, pageSize);
    }

    @Override
    public GameInformations getGameInformationById(Integer giId) {
        return backstageMapper.getGameInformationById(giId);
    }

    @Override
    public int delGameInformation(Integer giId, Integer giState) {
        return backstageMapper.delGameInformation(giId, giState);
    }

    @Override
    public List<GameInformations> getGameInformationLike(String likeGame, Integer pageNum, Integer pageSize) {
        return backstageMapper.getGameInformationLike(likeGame, pageNum, pageSize);
    }

    @Override
    public int updateGame(Map map) {
        return backstageMapper.updateGame(map);
    }

    @Override
    public int updateGameProperties(Map map) {
        return backstageMapper.updateGameProperties(map);
    }

    @Override
    public int updateGameDetails(Map map) {
        return backstageMapper.updateGameDetails(map);
    }

    @Override
    public int deleteGameRotation(Map map) {
        return backstageMapper.deleteGameRotation(map);
    }


    @Override
    public List<GameTypes> getGameType(Integer pageNum, Integer pageSize) {
        return backstageMapper.getGameType(pageNum, pageSize);
    }

    @Override
    public List<GameTypes> getGameTypeLike(String likeType, Integer pageNum, Integer pageSize) {
        return backstageMapper.getGameTypeLike(likeType, pageNum, pageSize);
    }

    @Override
    public GameType getGameTypeById(Integer gtId) {
        return backstageMapper.getGameTypeById(gtId);
    }

    @Override
    public int updateGameType(Integer gtId, Integer gtState) {
        return backstageMapper.updateGameType(gtId, gtState);
    }

    @Override
    public int updateGameTypes(Map map) {
        return backstageMapper.updateGameTypes(map);
    }

    @Override
    public int addGameTypes(Map map) {
        return backstageMapper.addGameTypes(map);
    }


}
